package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("review")
@ApiModel("用户反馈/评论")
public class Review {
    @TableId
    @ApiModelProperty("反馈ID")
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("服务项目ID")
    private Integer serviceId;

    @ApiModelProperty("预约单号ID")
    private Integer appointmentId;

    @ApiModelProperty("评分")
    private Integer rating;

    @ApiModelProperty("评论")
    private String comment;

    @ApiModelProperty("创建日期")
    private LocalDateTime createdAt;
}
